<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>菜单管理</title>
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet"
	href="${basePath }/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
	<div class="container-fluid">
	<table class="table table-bordered table-hover">
	<thead>
				<tr>
				<td colspan="5">
							<a class="btn btn-primary btn-lg active" href="${basePath }/admin/toedit">添加菜单</a>
					</tr>
	
			
				<tr>
					<th>编号</th>
					<th>菜单名称</th>
					<th>菜单路径</th>
					<th>父菜单</th>
					<th width="400px;">操作</th>

				</tr>
			</thead>
			<tbody>
				
			
					<#list menuDtos as dto>
					<tr>
						<td>${dto.id}</td>
						<td>${dto.name}</td>
						<td>${(dto.url)}</td>
						<td>${(dto.fid)}</td>
						<td>
						<a href="${basePath }/admin/toedit?id=${dto.id}" ><span
							class="glyphicon glyphicon-pencil"></span></a>&nbsp;&nbsp;&nbsp;&nbsp;</a>
							<a href="${basePath }/admin/delete?id=${dto.id}" onclick="return confirm('是否要真的删除？')"><span
							class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
	
						</td>
					</tr>
					
					 
		        <#list (dto.childMenu) as menu>
					<tr>
						<td>${menu.name}</td>
						<td>${(menu.url)}</td>
						<td>${(menu.fid)}</td>
						<td><a
							href="${basePath }/admin/menu/toedit?id=${menu.id}"><span
							class="glyphicon glyphicon-pencil"></span></a>&nbsp;&nbsp;&nbsp;&nbsp;
							 <a
							href="${basePath }/admin/menu/delete?id=${menu.id}"
						
							onclick="return confirm('是否要真的删除？')"><span
							class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
					</tr>
					
					</#list>
                   </#list>
				</form>


			</tbody>
		</table>
	</div>

</body>
</html>